using Pay.TO;
using System;

namespace Pay.Data
{
	/// <summary>
	/// 用户银行卡表
	/// </summary>
	[Serializable]
	public class MerchantBankCard
	{
		/// <summary>
		/// 银行卡Id
		/// [主键：√]
		/// [长度：19]
		/// [不允许为空]
		/// </summary>
		public long Id { get; set; }

		/// <summary>
		/// 商户Id
		/// [长度：19]
		/// [不允许为空]
		/// </summary>
		public long MerchantId { get; set; }

		/// <summary>
		/// 银行卡户名
		/// [长度：100]
		/// [不允许为空]
		/// </summary>
		public string AccountName { get; set; }

		/// <summary>
		/// 银行卡卡号
		/// [长度：50]
		/// [不允许为空]
		/// </summary>
		public string AccountNum { get; set; }

		/// <summary>
		/// 银行名称
		/// [长度：50]
		/// [不允许为空]
		/// </summary>
		public string BankName { get; set; }

        /// <summary>
        /// 支行名称
        /// </summary>
        public string BranchName { get; set; }

		/// <summary>
		/// 手持身份证照
		/// [长度：300]
		/// </summary>
		public string HandIdCardImg { get; set; }

		/// <summary>
		/// 状态
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public EMerchantBankCardStatus Status { get; set; }

		/// <summary>
		/// 审核备注
		/// [长度：1000]
		/// </summary>
		public string Remark { get; set; }

		/// <summary>
		/// 创建时间
		/// [长度：23，小数位数：3]
		/// [不允许为空]
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 更新时间
		/// [长度：23，小数位数：3]
		/// [不允许为空]
		/// </summary>
		public DateTime UpdateTime { get; set; }

		/// <summary>
		/// 审核时间
		/// [长度：23，小数位数：3]
		/// </summary>
		public DateTime? AuditTime { get; set; }

		/// <summary>
		/// 审核人Id
		/// [长度：19]
		/// </summary>
		public long? AuditUserId { get; set; }

        /// <summary>
        /// 商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public virtual Manage AuditUser { get; set; }
    }
}
